API Documentation
MaterialManager.h
1 // MaterialManager.h
3 //
5 
6 namespace nkAstraeus
7 {
13  class MaterialManager final : public nkCommon::SingletonClass<MaterialManager>
14  {
15  public :
16 
57  Material* getByIndex (unsigned int id) ;
64  void rename (const nkMemory::StringView& currentName, const nkMemory::StringView& newName) ;
70  void erase (const nkMemory::StringView& name) ;
71  } ;
72 }
nkAstraeus::MaterialManager::getByIndex
Material * getByIndex(unsigned int id)
nkAstraeus::MaterialManager
Manages the materials available in the component.
Definition: MaterialManager.h:14
nkAstraeus::MATERIAL_TYPE
MATERIAL_TYPE
Lists all materials supported.
Definition: MaterialType.h:12
nkAstraeus::MaterialManager::get
Material * get(const nkMemory::StringView &name)
nkAstraeus::MaterialManager::erase
void erase(const nkMemory::StringView &name)
nkAstraeus::MaterialManager::createOrRetrieve
Material * createOrRetrieve(const nkMemory::StringView &name, MATERIAL_TYPE type)
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition: Engine.h:7
nkAstraeus::MaterialManager::rename
void rename(const nkMemory::StringView &currentName, const nkMemory::StringView &newName)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::Material
Base class for all materials in the component.
Definition: Material.h:16